package com.xjy.system.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xjy.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;



/**
 * VIEW视图对象 report_material_detail
 *
 * @author xjy
 * @date 2022-03-27
 */
@Data
@ApiModel("VIEW视图对象")
public class ReportMaterialDetailVo {

	private static final long serialVersionUID = 1L;


	/** 项目id */
	@Excel(name = "项目id")
	@ApiModelProperty("项目id")
	private Long projId;

	/** 项目名称 */
	@Excel(name = "项目名称")
	@ApiModelProperty("项目名称")
	private String projName;

	/** 物料id */
	@Excel(name = "物料id")
	@ApiModelProperty("物料id")
	private String materialId;

	/** 物料名称 */
	@Excel(name = "物料名称")
	@ApiModelProperty("物料名称")
	private String name;

	/** 物料单位 */
	@Excel(name = "物料单位")
	@ApiModelProperty("物料单位")
	private String unit;

	/** 状态:0:入库,1:借出,2:归还,3:报损,4:售卖 */
	@Excel(name = "状态:0:入库,1:借出,2:归还,3:报损,4:售卖")
	@ApiModelProperty("状态:0:入库,1:借出,2:归还,3:报损,4:售卖")
	private String materialStatus;

	/** 物料期初余额 */
	@Excel(name = "物料期初余额")
	@ApiModelProperty("物料期初余额")
	private Long startAmt;

	/** 变更数量 */
	@Excel(name = "变更数量")
	@ApiModelProperty("变更数量")
	private Long num;

	/** 物料期末余额 */
	@Excel(name = "物料期末余额")
	@ApiModelProperty("物料期末余额")
	private Long initAmt;

	/** 可用库存 */
	@Excel(name = "可用库存")
	@ApiModelProperty("可用库存")
	private Long availableStock;

	/** 发生日期 */
	@Excel(name = "发生日期")
	@ApiModelProperty("发生日期")
	@JsonFormat(
		pattern = "yyyy-MM-dd",
		timezone = "GMT+8"
	)
	private Date createTime;
}
